<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    (function text1(){
        console.log(123);
    })();

    (function text2(){
        console.log(222);
    }());
</script>